#include "time.h"
Time::Time()
{
	m_Period = 1;
}
Time::~Time()
{

}
void Time::SetPeriod(unsigned int _period)
{
	m_Period = _period;
}
float Time::Convert2Identity(unsigned int _tick)
{
	return (float)_tick/m_Period;
}
void Time::BeginTick()
{
	m_Tick = GetTickCount();
}
float Time::GetTick()
{
	return Convert2Identity(GetTickCount()-m_Tick);
}
void Time::EndTick()
{
	m_Tick = 0;
}	